<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>文章管理页</title>
    <link rel="shortcut icon" href="/favicon.ico">

    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link href="/public/admin/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/public/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/public/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/public/admin/css/animate.css" rel="stylesheet">
    <link href="/public/admin/css/style.css?v=4.0.0" rel="stylesheet">
    <link href="/public/admin/css/ourstyle.css?v=4.0.0" rel="stylesheet">
    <link href="/public/admin/js/plugins/layer/skin/layer.css" rel="stylesheet">

    <!-- 全局js -->
    <script src="/public/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/public/admin/js/bootstrap.min.js?v=3.3.5"></script>
    <!-- 自定义js -->
    <script src="/public/admin/js/content.js?v=1.0.0"></script>
    <script src="/public/admin/js/plugins/layer/layer.min.js"></script>
    <script src="/public/admin/plugins/laydate/laydate.js"></script>
    <script src="/public/admin/js/article.js"></script>
    <script src="/public/admin/js/common.js"></script>
    <!-- CKeditor -->
    <script src="/public/admin/plugins/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="/public/admin/plugins/ckfinder/ckfinder.js"></script>
    <!-- iCheck -->
    <script src="/public/admin/js/plugins/iCheck/icheck.min.js"></script>
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1"> 基本信息</a></li>
                    </ul>
                    <br/>
                    <div class="row">
                        <form action="" method="post" id="articleFrom" class="form-horizontal">
                            <div class="tab-content">
                                <div id="tab-1" class="tab-pane active">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">病人记账号：</label>
                                        <div class="col-sm-8">
                                            <input class="configInput form-control" name="patient_id" minlength="2" type="text" value="{$one.patient_id}" required="" aria-required="true">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">病人姓名：</label>
                                        <div class="col-sm-8">
                                            <input class="configInput form-control" name="patient_name" minlength="2" type="text" value="{$one.patient_name}" required="" aria-required="true">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">性别：</label>
                                        <div class="col-sm-8">
                                            <label class="checkbox-inline i-checks">
                                                <input type="radio" name="gender" value="1" {if $one['gender']=='1'}checked="checked"{/if} >男</label>
                                            <label class="checkbox-inline i-checks">
                                                <input type="radio" name="gender" value="0" {if $one['gender']=='0'}checked="checked"{/if} >女</label>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">入院登记年龄：</label>
                                        <div class="col-sm-8">
                                            <input class="configInput form-control" name="age" minlength="2" type="text" value="{$one.age}" required="" aria-required="true">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">病人科室：</label>
                                        <div class="col-sm-8">
                                            <input class="configInput form-control" name="department" minlength="2" type="text" value="{$one.department}" required="" aria-required="true">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">病人科室代码：</label>
                                        <div class="col-sm-8">
                                            <input class="configInput form-control" name="department_code" minlength="2" type="text" value="{$one.department_code}" required="" aria-required="true">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">在院状态：</label>
                                        <div class="col-sm-8">
                                            <label class="checkbox-inline i-checks">
                                                <input type="radio" name="status" value="1" {if $one['status']=='1'}checked="checked"{/if} >在院</label>
                                            <label class="checkbox-inline i-checks">
                                                <input type="radio" name="status" value="0" {if $one['status']=='0'}checked="checked"{/if} >离院</label>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">RFID号码：</label>
                                        <div class="col-sm-8">
                                            <input class="configInput form-control" name="rfid" minlength="2" type="text" value="{$one.rfid}" required="" aria-required="true">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">备注：</label>
                                        <div class="col-sm-8">
                                            <input class="configInput form-control" name="remark" minlength="2" type="text" value="{$one.remark}" required="" aria-required="true">
                                        </div>
                                    </div>

                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <input  type="hidden" name="id" value="{$one.id}" />
                                    <button class="btn btn-primary" onclick="ajax_submit_form('articleFrom','{:url('Patient/mainEdit')}')" type="button">保存</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(document).ready(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });
</script>
</body>
</html>
